package com.fivefox.common.configuration;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;


/**
 * @author: 李任起
 * @description: 飞书自建应用配置信息
 * @createDate: 2023-06-21 13:45
 */
@Data
@Component
@PropertySource(value = "classpath:feishu.yml", encoding = "utf-8")
@ConfigurationProperties(prefix = "feishu.app")
public class FeiShuAppConfig {
    /**
     * 应用的唯一的ID标识
     */
    @Value("${feishu-id}")
    private String id;
    /**
     * 应用密钥
     */
    @Value("${feishu-secret}")
    private String secret;

    @Value("${feishu-encrypt-key}")
    private String encryptKey;
    /**
     * 应用密钥
     */
    @Value("${feishu-verification-token}")
    private String verificationToken;


}
